import random
import pandas as pd
import numpy as np

# datas = {}
# df = pd.read_csv('data/房源数量占比.csv')
# df = df.sort_values('房源数量分布占比', ascending=False)
# province = df['省份'].head(5).tolist()
# # rank = df['房源数量分布占比'].head(5).tolist()
# print(df.head())
# for item in df.head().values:
#     datas[item[0]] = item[1]
#
# for data in datas:
#     print('name:', data, 'value:', datas[data])


temp = np.random.randint(40, size=100)
days = np.random.randint(7, size=100) + 1
hour = np.random.randint(12, size=100) + 1

data = pd.DataFrame({
    '日期': days.tolist(),
    '时间': hour.tolist(),
    '温度': temp.tolist()
})
data = data.values.tolist()
print(data)
